import { Entity ,Column, PrimaryGeneratedColumn} from "typeorm"

@Entity('g_article')
export default class article{

    @PrimaryGeneratedColumn()
    id:number
    @Column('datetime')
    gmt_created:string
    @Column('datetime')
    gmt_updated:string
    @Column({length:50})    
    title:string
    @Column('text')
    content:string
    @Column({length:20})
    g_type:string
    @Column({length:50})
    tag:string
    @Column('tinyint')
    deleted:boolean
}